<template>
	<view class="gjl-components">
		<view class="left">
			<view class="name">
				张小明，15286522335
			</view>
			<view class="address">
				河南省洛阳市洛龙区滨河南路幸福社区3单元302室
			</view>
		</view>
		<view class="right" @click.stop="btnClick(1)">
			<u-icon :name="icon" custom-prefix="custom-icon" color="#666666" size="32"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			item: {
				type: [Object],
				default: function(){
					return {}
				}
			},
			icon: {
				type: [String],
				default: 'edit'
			}
		},
		methods: {
			btnClick(index){
				this.$emit('btnClick',this.item,index)
			}
		}
	}
</script>

<style scoped lang="scss">
	.gjl-components{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.left{
			.name{
				font-size: 28rpx;
				font-weight: 400;
				line-height: 28rpx;
				color: #000000;
			}
			.address{
				margin-top: 20rpx;
				font-size: 24rpx;
				font-weight: 400;
				line-height: 28rpx;
				color: #999999;
			}
		}
		.right{
			
		}
	}
</style>